<template>
  <h2>自定义hook函数</h2>
  <div>x:{{ x }},y:{{ y }}</div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import useMouseEvent from "./hooks/useMouseEvent";
export default defineComponent({
  name: "App",
  setup() {
    const { x, y } = useMouseEvent();
    return {
      x,
      y,
    };
  },
});
</script>

<style>
</style>
